<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:c="http://java.sun.com/jsp/jstl/core">
    <f:metadata>

        <f:viewParam name="id_user_receiver" value="#{messagerieController.id_user_receiver}"
                     />
    </f:metadata>
    <head>
        <title>TODO supply a title</title>
    </head>
    <body>
        <h:form>
            <h:outputText value="Advanced" />
            <p:selectOneListbox id="scroll"  style="height:200px">
                <f:selectItems value="#{messagerieController.findMessages(id_user_receiver, IdUserTable)}" />


            </p:selectOneListbox>
            <h:panelGrid columns="2" >
                <div id="message">
                    <textarea rows="2" cols="34">
leave a comment
                    </textarea>
                </div>
                <p:commandButton value="post">

                </p:commandButton>
            </h:panelGrid>
        </h:form>
    </body>
</html>
